function registeration(){
var prtn_fname=/^[a-zA-Z]+$/;
var prtn_lname=/^[a-zA-Z]+$/;
var prtn_uname=/^[a-zA-Z0-9]+$/;
var prtn_pwd=/^[a-zA-Z0-9]\w{5,14}$/;
var prtn_email=/^([a-zA-Z0-9])+([\.a-zA-Z0-9_-])*@([a-zA-Z0-9])+(\.[a-zA-Z0-9_-]+)+$/;
var prtn_doorno=/^[0-9-#]+$/;
var prtn_streetname=/^[a-zA-Z\s]+$/;
var prtn_area=/^[a-zA-Z\s]+$/;
var prtn_city=/^[a-zA-Z\s]+$/;
var prtn_zip=/^[0-9]{6}$/;
var prtn_mob=/^[0-9]{10}$/;
var prtn_adhaar=/^[a-zA-Z0-9]+$/;

x1=document.f1.firstName.value;
if(!prtn_fname.test(x1)){
alert("Please enter the correct first name. use only alphabets(A-Za-z)");
return false;
}

x2=document.f1.lastName.value;
if(!prtn_lname.test(x2)){
alert("Please enter the correct last name. use only alphabets(A-Za-z and .(dot))");
return false;
}

x3=document.f1.userName.value;
if(!prtn_uname.test(x3)){
alert("Please enter the correct user name. use only alphabets(A-Za-z0-9)");
return false;
}

x4=document.f1.password.value;
if(!prtn_pwd.test(x4)){
alert("Please enter the correct password. use only (A-Za-z0-9) and 6-18 characters");
return false;
}

x5=document.f1.password2.value;
if(x5 != x4){
alert("confirm password should be same");
return false;
}



x6=document.f1.mobile.value;
if(!prtn_mob.test(x6)){
alert("Please enter the correct mobile number.");
return false;
}
x7=document.f1.email.value;
if(!prtn_email.test(x7)){
alert("Please enter the correct email. use the format xxx@abc.com");
return false;
}

x9=document.f1.doorNo.value;
if(!prtn_doorno.test(x9)){
alert("Please enter the correct door number. use only digits(0-9)");
return false;
}

x10=document.f1.street.value;
if(!prtn_streetname.test(x10)){
alert("Please enter the correct street name. use only alphabets(A-Za-z)");
return false;
}

x11=document.f1.area.value;
if(!prtn_area.test(x11)){
alert("Please enter the correct area. use only alphabets(A-Za-z)");
return false;
}

x12=document.f1.city.value;
if(!prtn_city.test(x12)){
alert("Please enter the correct city. use only alphabets(A-Za-z)");
return false;
}

x13=document.f1.pinCode.value;
if(!prtn_zip.test(x13)){
alert("Please enter the correct zip. use only 6 digits(0-9)");
return false;
}

}


function addressChange(){
	
	var prtn_doorno=/^[0-9#-]+$/;
	var prtn_streetname=/^[a-zA-Z\s]+$/;
	var prtn_area=/^[a-zA-Z\s]+$/;
	var prtn_city=/^[a-zA-Z\s]+$/;
	var prtn_zip=/^[0-9]{6}$/;
	var prtn_mob=/^[0-9]{10}$/;
	

	
	x1=document.f1.doorNo.value;
	if(!prtn_doorno.test(x1)){
	alert("Please enter the correct door number. use only digits(0-9,#,-)");
	return false;
	}

	x2=document.f1.street.value;
	if(!prtn_streetname.test(x2)){
	alert("Please enter the correct street name. use only alphabets(A-Za-z)");
	return false;
	}

	x3=document.f1.area.value;
	if(!prtn_area.test(x3)){
	alert("Please enter the correct area. use only alphabets(A-Za-z)");
	return false;
	}

	x4=document.f1.city.value;
	if(!prtn_city.test(x4)){
	alert("Please enter the correct city. use only alphabets(A-Za-z)");
	return false;
	}

	x5=document.f1.pinCode.value;
	if(!prtn_zip.test(x5)){
	alert("Please enter the correct zip. use only 6 digits(0-9)");
	return false;
	}
	
	}


